from . import views
from rest_framework.routers import DefaultRouter

# 路由列表
from django.urls import path, include, re_path

urlpatterns = [
    path('books/', views.BookView.as_view()),
    path('booksReverse/', views.BookReverseView.as_view()),
    path('books2/', views.BookView2.as_view()),
    re_path('books2/(?P<pk>\d+)/', views.BookView2Detail.as_view()),
    path('books3/', views.BookView3.as_view()),
]
